import { request,requestMock } from "@/util/http";
export const requestCategoryList=()=>{
    return request.get("/api/product/getBaseCategoryList")
}

// 请求banner数据
export const requestBannerList =()=>{
    return requestMock.get('/banner')
}

// 请求floor数据
export const requestFloorList=()=>{
    return requestMock.get('/floor')
}

// 请求search页面
export const requestSearchList =(params)=>{
    return request.post('/api/list',params)
}
//根据skuId 请求某个商品详情的数据
export const requestDetailInfo = (skuId) => {
    return request.get(`api/item/${skuId}`);
  };